package com.lanyam.travel.base.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanyam.travel.base.entity.Product;
import com.lanyam.travel.base.entity.TravelLine;
import com.lanyam.travel.base.entity.vo.TravelLineVo;

public interface ITravelLineService {

	List<TravelLine> getAllTravelLine();

	void deleteById(String productId);

	void update(TravelLine travelLine);

	Page<TravelLine> queryTravelLineList(int page, int pageSize, Map<String, Object> reqMap);

	List<TravelLine> getTravelLineByMap(Map<String, Object> reqMap);

	TravelLine queryTravelLineById(String id);

	List<TravelLine> batchQueryTravelLines(List<String> lineIds);

	void addTraveLine(TravelLine travelLine);

	TravelLine getTravelLineById(String lineId);

	TravelLine queryTravelLineInfo(String lineId);

	Page<TravelLine> queryTravelLinePage(int page, int pageSize, Map<String, String> reqMap);

	List<? extends Product> selectList(QueryWrapper<TravelLine> lineWrapper);
	/**
	 * 按关键字搜索
	 * @param key
	 * @return
	 */
	List<TravelLine> searchByKey(String key);

	List<TravelLine> getProductBySupplier(String supplierId);

}
